package com.jxzn.locust.support;

public enum ResponseCode {

    SUCCESS(0, "操作成功"),

    ERROR(1, "操作失败"),

    PARAM(2, "参数错误"),

    BUSINESS_ERROR(3, "业务异常，不允许该操作"),

    PERMISSION(4, "权限错误，没有相关权限"),

    SIGNED(5, "该票已经核验过了");

    int code;
    String message;

    private ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
